<template>
  <!-- 头寸维护历史记录查询查看明细页面弹出框-->
  <el-dialog
    title="头寸维护历史记录查询明细"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="false"
    @close="closeFn"
  >
    <el-form ref="detailsForm" :model="formData" label-width="170px" :disabled="true">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="交易流水号：" prop="id">
            <el-input v-model="formData.id" placeholder="交易流水号" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="设置存款准备金余额：" prop="reserve">
            <el-input v-model="formData.reserve" placeholder="设置存款准备金余额" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="设置预留头寸：" prop="newposition">
            <el-input v-model="formData.newposition" placeholder="设置预留头寸" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="录入员：" prop="creater">
            <el-input v-model="formData.creater" placeholder="录入员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="录入时间：" prop="createddate">
            <el-date-picker
              v-model="formData.createddate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="审核员：" prop="checkuser">
            <el-input v-model="formData.checkuser" placeholder="审核员" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="审核时间：" prop="checkdate">
            <el-date-picker
              v-model="formData.checkdate"
              type="date"
              value-format="yyyyMMdd"
              placeholder="选择时间"
              style="width: 100%"
            ></el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer" align="center">
      <el-button type="primary" @click="closeFn">关闭</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  name: "HistoryDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  watch: {
    open(val) {
      if (val) {
      }
    },
  },
  mounted() {},
  methods: {
    // 表单重置
    reset() {
      this.resetForm("detailsForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
      this.reset();
    },
    show() {
      this.open = true;
    },
  },
};
</script>
<style lang="scss" scoped>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
